# coding:utf-8
from celery import Celery
from ihome.libs.yuntongxun.SendTemplateSMS import CCP

celery_app = Celery("ihome", broker="redis://127.0.0.1:6379/1")


@celery_app.task
def send_sms(to, datas, tempId):
    cpp = CCP()
    cpp.Send_template_sms(to, datas, tempId)

# 开启：celery -A ihome.tasks.task_sms worker -l info












